# 如果空间格数多余，数据靠左对齐
x = 100
print("x=%-6d" % x)

y = 10.5
print("y=%-6.2f" % y)

z = 'python'
print("z=%-6s" % z)

# +号，如果数据为+数，则在前面加上+号
print('-'*100)
print("x=%+6d" % x)
print("y=%+6.2f" % y)
print("z=%+6s" % z)
